<template>
  <el-card>
    <div class="user-profile" >
      <div class="box-center">
        <pan-thumb :image="user.userPhoto" :height="'100px'" :width="'100px'" :hoverable="false"/>
        <div class="user-name text-center">{{ user.userPet }}</div>
        <div class="user-description text-center text-muted">{{ user.userDescription}}</div>
      </div>
    </div>
  </el-card>
</template>

<script>
import PanThumb from '@/components/PanThumb'
export default {
  name: 'Card',
  components: { PanThumb },
  props: {
    user:{
      type:Object,
      default: () => {
        return {
          userPhoto: '',
          userPet: '',
          userDescription: '',
        }
      }
    }
  }
}
</script>

<style lang="scss" scoped>
.box-center {
  margin: auto;
  display: table;
}

.text-muted {
  color: #777;
}

.user-profile {

.user-name {
  font-weight: bold;
}

.box-center {
  padding-top: 10px;
}

.user-description {
  padding-top: 10px;
  font-weight: 400;
  font-size: 14px;
}
}
</style>
